import { $t } from '#/locales'
export const statusData = [
  {
    name: 'FAILED',
    key: 'taskStatus',
    value: 'FAILED',
    label: $t('certificatesMgr.failedTxt'),
  },
  {
    name: 'UNPUBLISHED',
    key: 'isPublish',
    value: '0',
    label: $t('certificatesMgr.unpublishedTxt'),
  },
  {
    name: 'PUBLISHED',
    key: 'isPublish',
    value: '1',
    label: $t('certificatesMgr.publishedTxt'),
  },
  {
    name: 'isDeleted',
    key: 'isDeleted',
    value: '1',
    label: $t('certificatesMgr.isDeletedTxt'),
  },
]

export const statusBg = {
  published: '#30A46C',
  unpublished: '#FB9A0E',
  waiting: '#FB9A0E',
  processing: '#FB9A0E',
  success: '#30A46C',
  failed: '#E5484D',
  disabled: '#909399'
}

export const certificateStatusList = {
  "waiting": "WAITING",
  "processing": "PROCESSING",
  "success": "SUCCESS",
  "failed": "FAILED",
  "unpublished": "UNPUBLISHED",
  "published": "PUBLISHED",
  "disabled": "FALSE",
}
